let baseUrl = "/";
module.exports = {
  baseUrl: baseUrl, // 根据你的实际情况更改这里
  lintOnSave: true,
  productionSourceMap: false,
  chainWebpack: config => {
    // 解决 cli3 热更新失效 https://github.com/vuejs/vue-cli/issues/1559
    config.resolve.symlinks(true);
    //忽略的打包文件
    config.externals({
      vue: "Vue",
      "vue-router": "VueRouter",
      vuex: "Vuex",
      axios: "axios",
      "element-ui": "ELEMENT"
    });
  },
  transpileDependencies: ["avue-plugin-transfer", "avue-plugin-ueditor"],
  //配置转发代理
  devServer: {
    disableHostCheck: true,
    //port: 8080,
    //proxy: 'http://zkwl.tpddns.cn:8086'
    proxy: {
      "/": {
        target: "http://122.114.192.252:8001/",
        //target: 'http://42.51.202.133:8888/',
        // target: 'http://localhost:8086/',
        // target: 'http://zkwl.tpddns.cn:8086/',
        // target: "http://localhost:8086/",
        changeOrigin: true,
        ws: false,
        pathRewrite: {
          "^/": "/"
        }
      }
    }
  }
};
